﻿<!DOCTYPE html>
<html>
<head>
    <title>Index</title>
    <link href="favicon.ico" rel="shortcut icon" >
</head>
<body>

    <ul>
        <li>
            <a href="insert_db.html">Insert to databse</a>
        </li>
    </ul>

<?php
    $a = 10;
    $b = "hihi";
    function func1(){
        global $a,$b, $c;
        $c = "huhu+" . $b;
        echo 'Tao khai bao: <br />' ;
        echo '$a:  '.$a."<br /> ";
        echo '$b:  '.$b."<br /> " ;
        echo '$c:  '.$c."<br /> " ;
        $arr = array("str1","sa","str2","str3");
        print "<pre>";
        print_r ($arr);
        echo "</pre>";
        $echo1 = print ": <- ket qua lenh print <br /> ";
        echo $echo1."<br /> ",$a."<br /> ",$b."<br /> ";

        echo '<hr /> ';
    }
    func1();
    echo $c;
    echo '<hr /> ';
    print "<pre>";
    print_r ($GLOBALS);
    echo "</pre>";
	echo '<hr /> ';
	$x=6;
	echo 'x:6 <br />';
	echo 'x++ = ',$x++,' --> x = ',$x,'<br /> ';
	$x=6;
	echo '++x = ',++$x,' --> x = ',$x,'<br /> ';
	$x=6;
	echo 'x-- = ',$x--,' --> x = ',$x,'<br /> ';
	$x=6;
	echo '--x = ',--$x,' --> x = ',$x,'<br /> ';	
    echo '<hr /> ';
	echo 'x xor y: True if either x or y is true, but not both<br /> ';
	$x=6;$y=8;
	echo '(x>2 xor y>10) :' ,($x>2 xor $y>10),'<br /> ';
	echo '(x>2 xor y>2)  :' ,($x>2 xor $y>2),'<br /> ';
	echo '(x>20 xor y>20)  :' ,($x>20 xor $y>20),'<br /> ';
	
	
	
	
	
	
	
	
	
	
	
	
;?>
<br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> 

</body>
</html>